home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************************/
- /* */
- /* Program Name: Stiletto */
- /* */
- /* File Name: TermWindow.h */
- /* */
- /* © Apple Computer, Inc. 1991-1995 */
- /* All Rights Reserved */
- /* */
- /* Revision History: */
- /* */
- /* Date Who Modification */
- /* */
- /* 1991-07-01 Chris Halim Original version */
- /* 1995-06-26 Jaakko Railo Version 2.0 */
- /* */
- /************************************************************************************************/
-
- /****************************************** DESCRIPTION ******************************************
-
- *************************************************************************************************/
-
- /************************************************************************************************/
- /************************************************************************************************/
-
-
- #ifndef __TERMWINDOW__
- #define __TERMWINDOW__
-
-
- #ifndef __TELEPHONES__
- #include "Telephones.h"
- #endif
-
- #ifndef __DNWINDOW__
- #include "DNWindow.h"
- #endif
-
- //#ifndef __RPWINDOW__
- //#include "RPWindow.h"
- //#endif
-
-
- #if defined(powerc) || defined (__powerc)
- #pragma options align=mac68k
- #endif
- struct TelWindowRec {
- WindowRecord fWindowRecord;
- TELHandle fTELHandle; // a handle to this term record
- DNWindowPtr fDNWindowList; // a link-list of windowptr corresponding to this term's DNs
- ListHandle fDNList; // list manager record containing DNs
- FeatureListPtr fFeatureList; // list of specific system features
- // RPWindowPtr fRPWindow; // the rpwindow belonging to this terminal
- };
- #if defined(powerc) || defined(__powerc)
- #pragma options align=reset
- #endif
-
- typedef struct TelWindowRec TelWindowRec;
-
- typedef TelWindowRec *TelWindowPtr;
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- OSErr InitCTBManagers (void);
-
- short CreateTelWindow (TelWindowPtr * telWindow, const Rect * windowRect, TELHandle hTEL);
- void DisposeTelWindow (TelWindowPtr telWindow);
-
- Boolean IsHandledByTelWindow (TelWindowPtr telWindow, const EventRecord * theEvent);
-
- OSErr InstallTermHandler (TelWindowPtr telWindow);
- pascal void TermMsgHandler (TELHandle termHand, long msg, short mtype, short value, long ourA5);
- pascal void AllTermMsgsHandler (TELHandle termHand, long msg, short mtype, short value, long ourA5);
-
- void DumpTermInfo (TelWindowPtr telWindow);
- void DumpTermEvents (TelWindowPtr telWindow);
- void DumpSelectedDNInfo (TelWindowPtr telWindow);
- void DumpSelectedDNEvents (TelWindowPtr telWindow);
-
- void HandleFeatureMenu (TelWindowPtr telWindow, short menuID, short menuItem, short modifiers);
-
- TELCAHandle GetAnyCA (TelWindowPtr telWindow);
- TELCAHandle GetActiveCA (TELHandle termHand);
-
- TELDNHandle GetAnyDN (TelWindowPtr telWindow);
-
-
- #ifdef __cplusplus
- }
- #endif
-
-
- #endif /* __TERMWINDOW__ */
-
-
-